using System;
using Tao.FreeGlut;
using Tao.OpenGl;
using MoveModel;
using System.Threading;



namespace MoveView
{
	class MainClass
	{
		
		public static void Main (string[] args)
		{
            Move move = new Move();

            StereoRender renderEngine = new StereoRender(false, true, 1920, 1080, move);

            
            /*
			Glut.glutInit ();
			Glut.glutInitDisplayMode (Glut.GLUT_DEPTH | Glut.GLUT_DOUBLE | Glut.GLUT_RGBA);
			Glut.glutInitWindowSize (640, 480);
			Glut.glutCreateWindow ("PSMove Paint 3D");
			Gl.glEnable (Gl.GL_DEPTH_TEST);
			setLighting(true);
			Gl.glShadeModel(Gl.GL_FLAT);
			Gl.glTexEnvf(Gl.GL_TEXTURE_ENV,Gl.GL_TEXTURE_ENV_MODE,Gl.GL_MODULATE);

//			StereoCamera cam = new StereoCamera(
//		        2000.0,     // Convergence 
//		        35.0,       // Eye Separation
//		        1.3333,     // Aspect Ratio
//		        45.0,       // FOV along Y in degrees
//		        10.0,       // Near Clipping Distance
//		        20000.0);   // Far Clipping Distance
//
//			cam.ApplyLeftFrustum();
//			Gl.glColorMask(true, false, false, false);
//
//			Glut.glutDisplayFunc (renderScene);
//
//			Gl.glClear(Gl.GL_DEPTH_BUFFER_BIT);
//
//			cam.ApplyRightFrustum();
//
//			Gl.glColorMask(false, true, true, false);
			Glut.glutDisplayFunc (renderScene);
//
//			Gl.glColorMask(true, true, true, true);

			Glut.glutIgnoreKeyRepeat(1);
			Glut.glutSpecialFunc(pressKey);
            Glut.glutIdleFunc(moveUpdate);

            //Glut.glutTimerFunc(25, update, 0);
            Glut.glutMainLoop();
             * */
		}
	}
}
